package cn.webestar.scms.security.api;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class SendSmsCodeDto {

//    @NotNull(message = "不能为null")
//    private String requestId;

    @NotNull(message = "不能为null，发送短信的类型，登录、注册等，具体编码前后端自己协定")
    private Integer type;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phoneNum;

}
